package com.xsoft.logic.dao;

import java.util.List;


import com.xsoft.framework.common.HibernateGenericDao;
import com.xsoft.logic.model.DevUsers;

public class UserDao extends HibernateGenericDao<DevUsers>
{
	public DevUsers getUserByNameAndPassword(String name,String password){
		String hql =" from DevUsers where devname = ? and devpasswd =? ";
		List<DevUsers> list = this.find(hql, new Object[]{name,password});
		return list.get(0);
	}

}
